package com.twu.biblioteca;

import com.twu.biblioteca.util.ConsoleInterface;
import com.twu.biblioteca.util.IConsoleInterface;

import java.io.IOException;
import java.util.Scanner;

public class BibliotecaApp {

    public static void main(String[] args) throws IOException {
        Scanner scanner = new Scanner(System.in);
        IConsoleInterface consoleInterface = new ConsoleInterface();
        String line = new String();
        consoleInterface.displayMenu();
        while( !(line = scanner.nextLine()).equalsIgnoreCase("quit") ){
            consoleInterface.run(line.trim());
            consoleInterface.displayMenu();
        }
    }
}
